/* Estilos generales */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Barra de navegación */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f7a52c; /* naranja */
  padding: 10px 30px;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Menú */
.nav-links {
  font-size: 100%;
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
   flex: 1;
  justify-content: flex-start; 
  margin-left: 30px;
}

.nav-links li a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #333;
}

/* Redes sociales */
.social-icons a {
  color: white;
  margin-left: 15px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #333;
}


/*carrusel*/

.content-about {
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    background:#ff9837;
}


.body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    
}

.container-carousel {
    position: relative;
    width: 150vh;
    height: 320px;
    background-color: #ffffff;
    box-shadow: 0 .3rem 5rem #9e6d2c (0, 0, 0, .9);
    border-radius: 15px;
    overflow: hidden;
}

.carruseles{
    width: 500%;
    height: 100%;
    display: flex;
}

.slider-section {
    width: calc(100% / 5); /** imagenes por cantidad**/
    height: 100%;
}

.slider-section img {
    width: 100%;
    height: 109%;
    object-fit:contain;
    border-radius: 0px;
}

.btn-left,
.btn-right {
    display: flex;
    position: absolute;
    top: 50%;
    font-size: 2.5rem;
    border-radius: 50%;
    padding: 2px;
    color: #ff9837;
    transform: translate(0,-50%);
    transition: .5s ease;
    user-select: none;
}

.btn-left:hover,
.btn-right:hover {
    color: #5e2b02;
    background-blend-mode: screen;
}

.btn-left {
    left: 10px;
}

.btn-right {
    right: 10px;
}


/*CARROUSEL DE LOGOS*/


.caja {
    overflow: hidden;
    background: #ffac3c;
    white-space: nowrap;
    position: relative;
    margin-top: 0px;
}

.caja::before,
.caja::after {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    content: "";
    z-index: 2;
}

.caja::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #ffac3c);
}

.caja::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffac3c);
}

.caja:hover .caja-corredor {
    animation-play-state: paused;
}

.caja-corredor {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logo-slide {
    height: 70px;
    margin: 0 40px;
}

.em-slide{
    height: 80px;

}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/** slider de logos 2 **/ 

.caja2 {
    overflow: hidden;
    background: #2e2e2e;
    white-space: nowrap;
    position: relative;
    height: 110px;
}

.caja2::before,
.caja2::after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.caja2::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #2e2e2e);
}

.caja2::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #2e2e2e);
}

.caja2:hover .caja-corredor2 {
    animation-play-state: paused;
}

.caja-corredor2 {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logo-slide2 {
    height: 70px;
    margin: 0 40px;
}

.em-slide2{
    height: 80px;

}

@keyframes slide2 {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}



/** efecto de imagen **/


@keyframes show {
    from {
        opacity: 0.7;
        scale: 50%;
    }

    to {
        opacity: 1;
        scale: 100%;
    }
}

img {
    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name: show;

    animation-range: entry 25% cover 100%;
    animation-fill-mode: both;
}


/** categorias **/

.categorias {
  display: flex;
  flex-direction: column; /* Apila las filas verticalmente */
  align-items: center; /* Centra las filas */
  gap: 50px; /* Espacio entre las filas */
  padding: 40px 20px;
  background-color: #ffac3c;
}

.categoria-fila {
  display: flex;
  flex-wrap: wrap; /* Permite que los items se ajusten en pantallas pequeñas */
  justify-content: center; /* Centra los items de la fila */
  gap: 70px; /* Espacio entre categorías */
}



.categoria img {
  width: 180px; /* Ajusta el tamaño de la imagen */
  height: 180px;
  object-fit: contain; /* Asegura que la imagen se vea bien */
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.categoria {
  text-align: center;
  width: 180px; /* Ancho fijo para cada categoría */
}

.categoria a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}


.categoria a:hover img {
  transform: scale(1.05);
}


.categoria p {
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: underline;
  margin: 0;
  color: #fff;
}

/* Responsivo */
@media (max-width: 900px) {
  .categorias {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 500px) {
  .categorias {
    grid-template-columns: repeat(2, 1fr); /* 2 columna en móviles */
  }
}

/* NOSOTROS */

.nosotros {
  background-color:#ffac3c;   /* fondo naranja */
  color: #000;                 /* texto negro */
  padding: 5px 90px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  text-align: justify;
}


/* MAPA */

.direccion {
  margin-top: auto;
  background-color:  #ffac3c;
  padding: 40px 20px;
}

.direccion h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.direccion p {
  font-size: 20px;
  font-weight: bold;
   text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

/* Contenedor del mapa */

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  border: 15px solid #e96c1b; /* Marco naranja oscuro */
  border-radius: 15px;
  overflow: hidden;
}

/* Videos */

/* ...existing code... */
/* Videos */
.contenidos {
  background-color: #ffac3c; /* Cambia el fondo a naranja */
    padding: 1px 10px 30px;
  text-align: center;
}

.contenidos h2 {
  text-align: center;
  color: white;
  font-size: 2.5em;
  margin-bottom: 30px;
}

.video-container {
  display: flex;
  justify-content: center;
  gap: 50px; /* Espacio entre videos */
  flex-wrap: wrap; /* Para que se ajusten en pantallas pequeñas */
  margin-bottom: 20px ;
}


/* footer */

.footer {
  background-color: #f07d1b; /* Naranja */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.social-icons a {
  color: white;
  margin-left: 15px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #333; /* Oscuro al pasar el mouse */
}


/* .... burbuja whatsapp .... */

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  /* Eliminamos los estilos que crean el círculo */
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: auto;
  /* Añadimos una máscara para el efecto de desvanecimiento inferior */
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.whatsapp-float img {
  width: 150px; /* Ajusta el tamaño de tu imagen si es necesario */
  height: auto;
  display: block;
  animation-name: none;
  opacity: 1 ;
  scale: 1;
}

/* ...existing code... */

/* Estilo para el item seleccionado del menú */
.nav-links a.active,
.nav-links li.active a {
  background-color: #e07e32; /* color de fondo resaltado (ajusta) */
  color: #ffffff !important; /* texto en blanco */
  padding: 1.4rem 1rem;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.entregas {
  background-color: #ffac3c;
  padding: 40px 80px;
  text-align: justify;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.sin-animacion{
  animation: none !important; /* detiene la animación */
  transform: none !important; /* elimina cualquier efecto residual */
}
/* 🔸 Imagen sin animación */
.sin-animacion-2 {
  width: 20rem;
  display: block;
  position: relative;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  animation: none !important;
  transform: none !important;
}

/* 🔸 Sección completa del bloque naranja */
.contacto-asesor {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
  background-color: #ffac3c;
  width: 100%;
  
}

/* 🔸 Cuadro blanco con borde y sombra */
.asesor-box {
  background-color: white;
  border-radius: 25px;
  border: 3px solid #ffac3c; /* borde naranja */
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 850px;
}

/* 🔸 Botón */
.boton-asesor {
  background-color: #ffac3c;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 18px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
/* --- CORRECCIÓN DE BLOQUE NARANJA Y FOOTER --- */

/* Contenedor de contacto */
.contacto-asesor {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 2px;
  background-color: #ffac3c;
  
  /* 🔧 Estas líneas garantizan que cubra todo el ancho */
  width: 100vw;          /* ocupa el 100% del ancho de la ventana */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;    /* elimina cualquier margen del body o contenedor */
  margin-right: -50vw;   /* compensa el centrado */
  box-sizing: border-box;
  overflow: hidden;
}

/* Cuadro blanco del asesor */
.asesor-box {
  background-color: #fff;
  border-radius: 25px;
  border: 4px solid #ffac3c;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 850px;
  position: relative;
  z-index: 2;
}

/* Imagen con fade en la parte baja */
.sin-animacion-2 {
  width: 20rem;
  display: block;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  animation: none !important;
  transform: none !important;
}

/* Botón */
.boton-asesor {
  background-color: #ffac3c;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 18px 30px;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.boton-asesor:hover {
  background-color: #e98a00;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Contenedor general de los videos */
.videos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: start;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* Cada video individual */
.videos-container iframe {
  border-radius: 12px;
  width: 100%;
  max-width: 480px; /* Evita que sean demasiado grandes en pantallas grandes */
  aspect-ratio: 16 / 9;
}
